function print_json(st,fileName)
    fid = fopen(fileName,'W');
    fprintf(fid,'%s',jsonencode(st));
    fclose(fid);
end